<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var arr = [100,1200,1500,1700,2000];
        var newArr = [];
        for (var i = 0;i< arr.length;i++) {
            if (arr[i] < 1500) {
                newArr.push(arr[i])
            }
        }
        console.log(newArr);
        console.log(newArr[1]);
        
        
    </script>
</head>
<body>
    
</body>
</html>